import request from '@/util/request/request.ts'

export default {
	getManualList: (data : { goodsCode : string; goodsModel : string; goodsName : string; limit : number; page : number; snCode : string }) => {
		return request.globalRequest({
			url: '/mobile/user/gooods/getMobileInstructionBook',
			method: 'post',
			data,
			power: 2
		})
	},
	getManualDetail: (id: string) => {
		return request.globalRequest({
			url: `/mobile/user/gooods/getMobileInstructionBookDetail/${id}`,
			method: 'get',
			power: 2,
		})
	},
	getVideoList: (data: { goodsCode : string; goodsModel : string; goodsName : string; limit : number; page : number; snCode : string }) => {
		return request.globalRequest({
			url: '/mobile/user/gooods/getMobileVideo',
			method: 'post',
			power: 2,
			data,
		})
	},
	getVideoDetail: (id: string) => {
		return request.globalRequest({
			url: `/mobile/user/gooods/getMobileVideoDetail/${id}`,
			method: 'get',
			power: 2,
		})
	}
}
